package cn.lanca.gof6_10._07adapter.case1;

import com.example.demo.gof6_10._07adapter.case1.adaptee.Adaptee;
import com.example.demo.gof6_10._07adapter.case1.adapter.ObjectAdapter;
import com.example.demo.gof6_10._07adapter.case1.target.Target;

/**
 * 对象适配器模式测试
 *
 * @author meihongliang
 * @since 2020/8/10 16:04
 */
public class ObjectAdapterTest {

    public static void main(String[] args) {
        System.out.println("对象适配器模式测试：");
        Adaptee adaptee = new Adaptee();
        Target target = new ObjectAdapter(adaptee);
        target.request();
    }
}